<template>
  <div class="active-province-box">
    <div class="select1">
          <AreaSelect></AreaSelect>
    </div>
    <ActiveTime></ActiveTime>
    <TabProvince></TabProvince>
    <DetailsDialog></DetailsDialog>
  </div>
</template>

<script>
import { Bus } from "../../Bus";
import AreaSelect from "../../components/sales/areaSelect";
import ActiveTime from "../../components/active/activeTime";
import TabProvince from "../../components/sales/TabProvince";
import DetailsDialog from "../../components/sales/DetailsDialog";
export default {
  components: {
    AreaSelect,
    ActiveTime,
    TabProvince,
    DetailsDialog
  },
  data() {
    return {
      province:"",
      lists: [
        {
          name: "省",
          prop: "province",
        },
        {
          name: "总活跃度",
          prop: "sales",
        },
      ],
       provindeSales: [
        {
          province:"四川省",
          sales:108
        },
        {
          province:"北京市",
          sales:32
        }
      ],
    };
  },
  mounted(){
     Bus.$on("province",(value)=>{
      this.province = value;
      console.log(this.province);
    });
    Bus.$emit("province-lists",this.lists);
    Bus.$emit("provinde-datas",this.provindeSales);
  }
};
</script>
<style lang="less" scoped>
.active-province-box {
  padding-top: 30px;
}
.active-time {
  margin: 30px 0px 0px 30px;
}
.select1{
  margin-right: 50px;
  margin-left: 30px;
}
</style>